module.exports = {
	// 轻提示
	popUpMsg(icon, msg, time, mask, success, fail, complete) {
		return uni.showToast({
			icon,
			title: msg,
			duration: time,
			mask: mask ? mask : true,
			success: success ? success : () => {},
			fail: fail ? fail : () => {},
			complete: complete ? complete : () => {}
		})
	},
	
	// 加载
	loading(title, mask) {
		return uni.showLoading({
			title,
			mask: mask ? mask : true
		})
	},
	
	// 模态弹窗
	modal(title, msg, success) {
		return uni.showModal({
			title,
			content: msg,
			success
		})
	},
}

